/* ==========================================================================
   Adventio — Spacing, radii, shadows, borders, motion, layout
   4px base grid. Tight rhythm for a medium–high density desktop tool.
   ========================================================================== */
:root {
  /* ---------- Spacing scale (4px base) ---------- */
  --space-0:  0;
  --space-px: 1px;
  --space-0-5: 2px;
  --space-1:  4px;
  --space-1-5: 6px;
  --space-2:  8px;
  --space-2-5: 10px;
  --space-3:  12px;
  --space-3-5: 14px;
  --space-4:  16px;
  --space-4-5: 18px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---------- Radii ---------- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  8px;   /* default control radius */
  --radius-lg:  10px;  /* cards */
  --radius-xl:  14px;  /* large panels, modals */
  --radius-2xl: 20px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---------- Border widths ---------- */
  --border-width:    1px;
  --border-width-2:  1.5px;
  --border-width-3:  2px;

  /* ---------- Shadows — warm-tinted, low & layered ---------- */
  --shadow-xs:  0 1px 2px rgba(22, 20, 15, 0.06);
  --shadow-sm:  0 1px 2px rgba(22, 20, 15, 0.06), 0 1px 3px rgba(22, 20, 15, 0.08);
  --shadow-md:  0 2px 4px rgba(22, 20, 15, 0.05), 0 4px 10px rgba(22, 20, 15, 0.08);
  --shadow-lg:  0 6px 14px rgba(22, 20, 15, 0.09), 0 2px 6px rgba(22, 20, 15, 0.06);
  --shadow-xl:  0 14px 32px rgba(22, 20, 15, 0.14), 0 4px 10px rgba(22, 20, 15, 0.08);
  --shadow-overlay: 0 24px 56px rgba(13, 24, 21, 0.24), 0 6px 16px rgba(13, 24, 21, 0.12);

  /* Inset / inner */
  --shadow-inset: inset 0 1px 2px rgba(22, 20, 15, 0.07);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.4, 0.2, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 0.84, 0.34, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.5, 0, 0.84, 0.34); /* @kind other */
  --ease-spring:   cubic-bezier(0.34, 1.4, 0.5, 1); /* @kind other */

  --duration-fast:   120ms; /* @kind other */
  --duration-normal: 180ms; /* @kind other */
  --duration-slow:   260ms; /* @kind other */

  --transition-control: color var(--duration-fast) var(--ease-standard),
                        background-color var(--duration-fast) var(--ease-standard),
                        border-color var(--duration-fast) var(--ease-standard),
                        box-shadow var(--duration-fast) var(--ease-standard);

  /* ---------- Z-index scale ---------- */
  --z-base:     0;   /* @kind other */
  --z-sticky:   100; /* @kind other */
  --z-nav:      200; /* @kind other */
  --z-dropdown: 300; /* @kind other */
  --z-overlay:  400; /* @kind other */
  --z-modal:    500; /* @kind other */
  --z-toast:    600; /* @kind other */
  --z-tooltip:  700; /* @kind other */

  /* ---------- Layout dimensions ---------- */
  --nav-width:          252px;
  --nav-width-collapsed:64px;
  --topbar-height:      56px;
  --content-max:        1280px;
  --container-pad:      var(--space-6);
}
